package edu.cuit.zhuyimeng.aircraft.dal.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 航空公司表
 * @TableName airline
 */
@TableName(value ="airline")
@Data
@Schema(name = "AirlinePO", title = "航空公司信息")
public class AirlinePO implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(title = "航空公司ID")
    private Integer id;

    /**
     * 名称简写
     */
    @TableField(value = "simple_name")
    @Schema(title = "航空公司简称")
    private String simpleName;

    /**
     * 名称全称
     */
    @TableField(value = "full_name")
    @Schema(title = "航空公司全称")
    private String fullName;

    /**
     * Logo名称
     */
    @TableField(value = "logo")
    @Schema(title = "航空公司Logo")
    private String logo;

    /**
     * 航班号前缀
     */
    @TableField(value = "prefix")
    @Schema(title = "航班号前缀")
    private String prefix;

    @TableField(exist = false)
    @Serial
    private static final long serialVersionUID = 1L;
}